# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=gomaildrop
pkgver=0.1
pkgrel=0
pkgdesc="deliver e-mail to local maildirs based on filters"
url="https://gitlab.alpinelinux.org/kdaudt/gomaildrop"
arch="all"
license="MIT"
makedepends="go redo gettext"
source="https://gitlab.alpinelinux.org/kdaudt/gomaildrop/-/archive/v$pkgver/gomaildrop-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

export GOPATH="$srcdir/go"
export GOFLAGS="$GOFLAGS -modcacherw -mod=readonly"

build() {
	./configure --prefix /usr
	redo build
}

check() {
	redo check
}

package() {
	cd "$builddir"
	DESTDIR="$pkgdir" redo install
}

sha512sums="
409b5ca31e41747eeede763ec02d7b9c995fdb87ac6953a315a42e29a8dc04716c5e914afa03332b874d5a57b61329b55efd8f73c39c7c8b1cb8746032db192c  gomaildrop-v0.1.tar.gz
"
